package com.radiation.rms.service;

import com.radiation.rms.common.R;
import com.radiation.rms.entity.Device;
import com.baomidou.mybatisplus.extension.service.IService;
import com.radiation.rms.vo.AreaVo;
import com.radiation.rms.vo.CountVo;
import com.radiation.rms.vo.DeviceVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备表 服务类
 * </p>
 *
 * @author 1062
 * @since 2021-04-02
 */
public interface DeviceService extends IService<Device> {

    List<AreaVo> getDataMap(List<String> collect);

    CountVo getCount(List<String> collect);

    Map<String, Double[]> getAreaMap(List<String> collect);

    R queryDevice(DeviceVo deviceVo);

    R saveDevice(Device device);

    R getDeviceById(String deviceId);

    R updateDevice(Device device);

    R initMac();

    R deviceCondition(DeviceVo deviceVo);

    List<Device> getMac(List<String> departmentIds);
}
